import request from '@/utils/request'

// 查询设备更新列表
export function listDeviceUpgrades(query) {
  return request({
    url: '/genius/platform-device-upgrades/list',
    method: 'get',
    params: query
  })
}

// 查询设备更新详情
export function getDeviceUpgradesDetail(id) {
  return request({
    url: '/genius/platform-device-upgrades/' + id,
    method: 'get'
  })
}

// 新增设备更新
export function addDeviceUpgrades(data) {
  return request({
    url: '/genius/platform-device-upgrades',
    method: 'post',
    data: data
  })
}

// 修改设备更新
export function updateDeviceUpgrades(data) {
  return request({
    url: '/genius/platform-device-upgrades',
    method: 'put',
    data: data
  })
}
// 导出设备更新
export function exportDeviceUpgrades(data) {
  return request({
    url: '/genius/platform-device-upgrades/export',
    method: 'post',
    data: data
  })
}

// 逻辑删除设备更新信息
export function delDeviceUpgrades(ids) {
  return request({
    url: '/genius/platform-device-upgrades/' + ids   ,
    method: 'delete'
  })
}
